<?php

/*
	* CONTROLADOR DE PAGINAS ESTATICAS 
	*/

class	Pages	extends	CI_Controller	{
				
				public function index(){
								echo 'hola soy indice';
}


				public	function	vista($page	=	'home')	{
								
								$this->load->helper('url');
								
								if	(!file_exists(APPPATH	.	'/views/pages/'	.	$page	.	'.php'))	{
												// Whoops, we don't have a page for that!
												show_404();
								}

								$data['title']	=	ucfirst($page);	// Capitalize the first letter

								$this->load->view('templates/header',	$data);
								$this->load->view('templates/cabecera',	$data);
								$this->load->view('pages/'	.	$page,	$data);
								$this->load->view('templates/pie',	$data);
								$this->load->view('templates/footer',	$data);
				}

}
